﻿@model Models.Car_Brand


<script type="text/javascript" src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

<style type="text/css">
    #modifyTb {
        width: 400px;
        border: 1px solid #0094ff;
        margin: 10px auto;
        border-collapse: collapse;
    }

        #modifyTb td, #modifyTb th {
            border: 1px solid #0094ff;
            padding: 4px;
        }
</style>
@using (Html.BeginForm("EditSave", "CarBrand"))
{//BeginForm方法 如果没有通过参数 设置 提交的路径，那么就会直接拿当前访问的路径 当 action
    @Html.HiddenFor(model => model.ID)
    <table id="modifyTb">
        <tr>
            <td>品牌</td>
            <td>@Html.TextBoxFor(model => model.BrandName)</td>
            <td> </td>
        </tr>

        <tr>
            <td> 序号</td>
            <td>@Html.TextBoxFor(model => model.OrderNum)</td>
            <td> </td>
        </tr>

        <tr>
            <td>备注 </td>
            <td>@Html.EditorFor(model => model.Bz)</td>
            <td></td>
        </tr> 
        <tr>
            <td colspan="3">
                <input type="submit" value="保存" />
            </td>
        </tr>
    </table>
}
